<?php
class Zend_View_Helper_FckEditor
{
	public function FckEditor($instance='textarea', $value=null, $height=200, $width=930, $Toolbar=false)
	{
		$front = Zend_Controller_Front::getInstance();
		$baseUrl = $front->getBaseUrl();
		
		include('public/js/fckeditor/fckeditor.php');
		$oFCKeditor = new FCKeditor($instance) ;
		$oFCKeditor->BasePath = $baseUrl.'/public/js/fckeditor/';
		$oFCKeditor->Width = $width;
		$oFCKeditor->Height = $height;
		
		if($Toolbar)
		{
            $oFCKeditor->ToolbarSet	= 'Default';
        }
		else
		{
            $oFCKeditor->ToolbarSet	= 'Basic';
        }
		
		return $oFCKeditor->Create(); 
	}
}